package com.example.system.exception;

public class BusinessException extends  RuntimeException{
    private ExceptionCode exceptionCode;

    public BusinessException(ExceptionCode exceptionCode){
        super(exceptionCode.msg);
        //传入的ExceptionCode参数赋值给成员变量exceptionCode
        this.exceptionCode =exceptionCode;
    }
}
